#pragma once
#include <cmath>
#include <limits>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
int getDis(std::vector<int> &A, int n);
std::vector<std::vector<int>> flipChess(std::vector<std::vector<int>> &A,
                                        std::vector<std::vector<int>> &f);

int countPath(std::vector<std::vector<int>> &CityMap, int n, int m);
int largestRectangleArea(vector<int> &heights);
int maximalRectangle(vector<vector<char>> &matrix);
